package cn.njupt.gis.geo;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class FeatureMember {
	private Map attrMap = new HashMap();
	private List value = new ArrayList();
	private String geoType;
	
	public void putAttr(String attrName,Object attr)
	{
		attrMap.put(attrName, attr);
		value.add(attr);
	}
	
	public Map getAttrMap() {
		return attrMap;
	}
	public void setAttrMap(Map attrMap) {
		this.attrMap = attrMap;
	}
	public List getValue() {
		return value;
	}
	public void setValue(List value) {
		this.value = value;
	}
	public String getGeoType() {
		return geoType;
	}
	public void setGeoType(String geoType) {
		this.geoType = geoType;
	}
	public Object getGeometryProperty()
	{
		return value.get(0);
	}
	public String[] getNGeoProperty()
	{
		 Object attributes[] = value.toArray();
		 return (String[]) Arrays.copyOfRange(attributes, 1,attributes.length);
	}
 
	
}
